package com.umgsai.thread.thread01;

public class MyThread22 extends Thread {
	@Override
	public void run() {
		System.out.println("MyThread22 priority:" + this.getPriority());//6
		MyThread21 t21 = new MyThread21();
		t21.start();
	}
	
	public static void main(String[] args) {
		System.out.println("Main begin Mypriority:" + Thread.currentThread().getPriority());//5
		Thread.currentThread().setPriority(6);
		System.out.println("Main end Mypriority:" + Thread.currentThread().getPriority());//6
		MyThread22 t22 = new MyThread22();
		t22.start();
	}
}
